package app.common.utils.cjt.ao;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 其他出站订单查询请求参数
 * @author feizns
 * @since 2023/04/04
 */
@Data
public class OtherQueryQueryWithDetailAo {

    /**
     * 1：发货时间；
     *
     * 2：创建时间；
     *
     * 3：最后修改时间
     * 不传默认为发货时间
     */
    private Integer time_type = 1;

    /**
     * 开始时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime start_time;

    /**
     * 结束时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime end_time;

    public OtherQueryQueryWithDetailAo(LocalDateTime start_time, LocalDateTime end_time) {
        this.start_time = start_time;
        this.end_time = end_time;
    }

    public OtherQueryQueryWithDetailAo(LocalDateTime start_time) {
        this.start_time = start_time;
        this.end_time = LocalDateTime.now();
    }

}
